package com.AAA.service.Impl.fpa;

import com.AAA.dao.fpa.ITFpaRecordDedtailMapper;
import com.AAA.entity.fpa.TFpaRecordDedtail;
import com.AAA.entity.sas.TSasRecordDedtail;
import com.AAA.service.fpa.TFpaRecordDedtailService;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * (TFpaRecordDedtail)表服务实现类
 *
 * @author 何泽明
 * @since 2022-11-05 22:26:51
 */
@Service
public class TFpaRecordDedtailServiceImpl implements TFpaRecordDedtailService {
   @Autowired
   private ITFpaRecordDedtailMapper mapper;


   @Override
   public boolean insertBatch(List<TFpaRecordDedtail> details) {
      int i=0;
      for (TFpaRecordDedtail detail : details) {
         i+=mapper.insert(detail);
      }
      return details.size()==i;
   }
}

